#!/bin/bash
cat /data/log/nginx/$2  |grep $1 |grep -A 1 merCode=$3 |grep -v merCode=$3 |awk -F"[][]" '{print $24}'  | awk '{sum+=$1}END{print sum}' 
 

